<?php


namespace app\common\model;

use think\Model;

class ShoptypeModel extends Model
{
    protected $name = 'shoptype';

    public function getStatusAttr($value,$data)
    {
        $arr = [
            '1' => '启用',
            '2' => '禁用',
        ];
        return $arr[$data['status']];
    }


}